/*
* $Id: msg.h,v 1.16 2007/10/30 06:17:16 sunny Exp $
*/
/*******************************************************************************

       UBEC (Uniband Electronic Corp.)

       Project: U-NET01, Ubiquitous network platform

       File: msg.h

       Version: 0.3.0

       Usage: MSG Systen Define

       Platform: U-NET01 DK with Keil 8051 C compiler

       Reference:

               Silicon Laboratories: C8051F124, C8051F340

               UBEC: UZ2400, UZ2410

       Note :

               Copyright (C) 2007 Uniband Electronic Corporation, All rights reserved

********************************************************************************/

#define MSG_MAX_QUEUE_SIZE	25
#define MSG_MAX_PROCESS		5

/*******************************************************************************

	MSG Parameters

********************************************************************************/

typedef struct _message_buffer_{
		UINT8 DataFlag;  // if the entry exist data?
		UINT8 Length;
		UINT8 MsgType;
		void *MsgPtr;
}MSG_BUFF;

typedef struct _message_queue_ {
	UINT8 QueueReadPoint ;
	UINT8 QueueWritePoint;
	UINT8 QueueDataCount;

	MSG_BUFF Msg[MSG_MAX_QUEUE_SIZE];

}MSG_QUEUE;
